import Fluent

struct CreateReferenceVideo: Migration {
    
    func prepare(on database: Database) -> EventLoopFuture<Void> {
        database.schema("referencevideo")
            .id()
            .field("fileOcId", .string)
            .field("referenceID", .uuid, .required, .references("reference", "id"))
            .create()
    }
    
    func revert(on database: Database) -> EventLoopFuture<Void> {
        database.schema("referencevideo").delete()
    }
}
